package cn.mazexal.examapi.models.db;

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;

/**
 * 用户做题记录
 *
 */
@Data
@TableName(value = "user_question_log")
public class UserQuestionLogDO implements Serializable {

	/**
	 * 
	 */
	@TableId(value = "id", type = IdType.INPUT)
	private Long id;

	/**
	 * 
	 */
	@TableField(value = "user_id")
	private Long userId;

	/**
	 * 
	 */
	@TableField(value = "exam_bank_id")
	private Long examBankId;

	/**
	 * 
	 */
	@TableField(value = "answer")
	private String answer;

	/**
	 * 用户得分
	 */
	@TableField(value = "score")
	private BigDecimal score;

	/**
	 * 
	 */
	@TableField(value = "create_time")
	private Long createTime;

	/**
	 * 
	 */
	@TableField(value = "menu_id")
	private Long menuId;

	/**
	 * 花费时间
	 */
	@TableField(value = "use_time")
	private Long useTime;

	/**
	 * 
	 */
	@TableField(value = "question_id")
	private Long questionId;

	/**
	 * 
	 */
	@TableField(value = "exam_id")
	private Long examId;

	@TableField(value = "log_id")
	private Long logId;
}